Xbasic
*TREE_TO_OUTLINE Function
Syntax
Indented_List as C = *TREE_TO_OUTLINE(C treedef[,C outline_ident[,C separator]])
Arguments
- Indented_List
Data formatted as a CR-LF delimited and indented list.
- treedef
Data formatted for display in a tree control.
- outline_ident
Optional. Default = "" (8 spaces). A character that separates the "branches" in the tree data.
- separator
Optional. Default = ".". A character string that represents an indent level in the indented list.
Description
Transform an tree string to an outline string.
Discussion
The *TREE_TO_OUTLINE() function converts data formatted for a tree control into an indented list.
Example
dim str as C dim outline as C str = <<%a% customer.orders.items customer.orders.salespeople customer.payment.checks Location.State %a% outline = *tree_to_outline(str,"+",".") ? outline = customer +orders ++items ++salespeople +payment ++checks Location +State
See Also